package com.matriq.cloudmanager;

import com.matriq.cloudmanager.R;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.TextView;
import net.lgpage.activity.BaseActivity;

public class AttendanceActivity extends BaseActivity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ac_attendance);
		setViews();
		setEvents();
		loadData();
	}

	LinearLayout ll[] = new LinearLayout[2];
	TextView tv_title;
	ImageButton ll_back;

	private void setViews() {
		ll[0] = (LinearLayout) this.findViewById(R.id.ll0);
		ll[1] = (LinearLayout) this.findViewById(R.id.ll1);
		tv_title = (TextView) this.findViewById(R.id.tv_title);
		ll_back = (ImageButton) this.findViewById(R.id.ll_back);
	}

	private void setEvents() {
		ll[0].setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				toActivity(MyAttendanceActivity.class);
			}
		});
		ll[1].setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				toActivity(LeaveActivity.class);
			}
		});
	}

	Object obj;

	public void setData(Object obj) {
		this.obj = obj;
		tv_title.setText(null);
	}

	private void loadData() {

	}

	@Override
	public void onDestroy() {
		
		super.onDestroy();
	}

}